x86 cpuidle: check whether cpu is online in cpu idle control
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 17 Aug 2010 18:32:37 +0000 (19:32 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 17 Aug 2010 18:32:37 +0000 (19:32 +0100)
commit2a9f4ae1adfa1029587590f9af1a373ae85155a4
tree843f12acdcc1675fffc9cf8bc0fc08e34e5521f5
parentf5c637a788e8b7f52b543df4bfb6b4ec21d72986
x86 cpuidle: check whether cpu is online in cpu idle control

We observed a 2.6.18.8 dom0 kernel crash when Xen has maxcpus < num
of physical cores (maxcpus=3D4 for a 12-core system). It appeared that
hypervisor doesn't check whether CPU is online or not. This small
patch fixed the issue.

Signed-off-by: Uwe Dannowski <uwe.dannowski@amd.com>
Acked-by: Wei Huang <wei.huang2@amd.com>
xen/arch/x86/acpi/cpuidle_menu.c